package com.qianli.cashmama.trade.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.qianli.cashmama.trade.dao.TTradeOpenOrderDao;
import com.qianli.cashmama.trade.entity.TTradeOpenOrderEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: xulin
* Date: 2020-11-18
* Time: 23:20:34.027
*/

@Repository
public class TTradeOpenOrderDaoImpl extends AbstractBaseMapper<TTradeOpenOrderEntity> implements TTradeOpenOrderDao {

    @Override
    public TTradeOpenOrderEntity getByTradeNo(String tradeNo) {
        Map<String, Object> map = new HashMap<>();
        map.put("tradeNo", tradeNo);
        return getSqlSession().selectOne(getStatement("getByTradeNo"), map);
    }
}